package com.pospi.pospihold.ui.base;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

import com.pospi.pospihold.App;

public class SuperBaseActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        App.getActivities().add(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        App.getActivities().remove(this);
    }

    public void showToast(String content) {
        Toast.makeText(SuperBaseActivity.this, content, Toast.LENGTH_SHORT).show();
    }
}
